package app.model.su;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author shishun.wang
 * @date 下午3:56:00 2016年5月12日
 * @version 1.0
 * @describe 
 */
public abstract class BaseModel implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id
	private String id;
	
	@Field("create_user")
	private String createUser = "0";
	
	@Field("last_update_user")
	private String lastUpateUser;
	
	@Field("state")
	private int state = 1;
	
	@Field("create_date")
	private Long createDate = System.currentTimeMillis();
	
	@Field("lase_update_date")
	private Long laseUpdateDate;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getLastUpateUser() {
		return lastUpateUser;
	}

	public void setLastUpateUser(String lastUpateUser) {
		this.lastUpateUser = lastUpateUser;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Long createDate) {
		this.createDate = createDate;
	}

	public Long getLaseUpdateDate() {
		return laseUpdateDate;
	}

	public void setLaseUpdateDate(Long laseUpdateDate) {
		this.laseUpdateDate = laseUpdateDate;
	}

}
